﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using QuanLyBongDa.HeThongGiaoDien;

namespace QuanLyBongDa
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult dr = MessageBox.Show("Bạn có muốn thoát hay không?", "Thoát chương trình", MessageBoxButtons.OKCancel,
                MessageBoxIcon.Question);
            if (dr == DialogResult.Cancel)
            {
                e.Cancel = true;
            }
        }

        private void tiếpNhậnĐộiBóngToolStripMenuItem_Click(object sender, EventArgs e)
        {
          
            FormTiepNhanDoiBong frmTiepNhanDoiBong = new FormTiepNhanDoiBong { MdiParent = this };
            frmTiepNhanDoiBong.Show();
           
        }

        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void thôngTinToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormThongTin frmThongTin = new FormThongTin { MdiParent = this };
            frmThongTin.Show();
        }
       
        private void thêmXoáSửaToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }
        private void Form1_Load(object sender, EventArgs e)
        {
            //FormDangNhap frmDanhNhap = new FormDangNhap();
            //frmDanhNhap.MdiParent = this;
            //frmDanhNhap.Show();
        }

        

        private void hồSơĐộiBóngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormHoSoDoiBong frmHoSoDoiBong = new FormHoSoDoiBong { MdiParent = this };
            frmHoSoDoiBong.Show();
        }

        private void danhSáchCầuThủToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDanhSachCauThu frmDanhSachCauThu = new FormDanhSachCauThu { MdiParent = this };
            frmDanhSachCauThu.Show();
        }

        private void lịchThiĐấuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormLichThiDau frmLichThiDau = new FormLichThiDau { MdiParent = this };
            frmLichThiDau.Show();
        }

        private void kếtQuảThiĐấuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormKetQuaThiDau frmKetQuaThiDau = new FormKetQuaThiDau { MdiParent = this };
            frmKetQuaThiDau.Show();
        }

        private void bảngXếpHạngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBangXepHang frmBangXepHang = new FormBangXepHang { MdiParent = this };
            frmBangXepHang.Show();
        }

        private void quyĐịnhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormQuyDinh frmQuyDinh = new FormQuyDinh { MdiParent = this };
            frmQuyDinh.Show();
        }

        private void hướngDẫnToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormHuongDan frmHuongDan = new FormHuongDan { MdiParent = this };
            frmHuongDan.Show();
        }

        private void bảnQuyềnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBanQuyen frmBanQuyen = new FormBanQuyen { MdiParent = this };
            frmBanQuyen.Show();
        }

        

        private void lịchThiĐấuToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormLichThiDau frmLichThiDau = new FormLichThiDau { MdiParent = this };
            frmLichThiDau.Show();
        }

        private void kếtQuảThiĐấuToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormKetQuaThiDau frmKetQuaThiDau = new FormKetQuaThiDau { MdiParent = this };
            frmKetQuaThiDau.Show();
        }

        private void bảngXếpHạngToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormBangXepHang frmBangXepHang = new FormBangXepHang { MdiParent = this };
            frmBangXepHang.Show();
        }

        private void cầuThủToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDanhSachCauThu frmDanhSachCauThu = new FormDanhSachCauThu { MdiParent = this };
            frmDanhSachCauThu.Show();
        }

        private void độiBóngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormTiepNhanDoiBong frmTiepNhanDoiBong = new FormTiepNhanDoiBong { MdiParent = this };
            frmTiepNhanDoiBong.Show();
            
        }

        private void hồSơĐộiBóngToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormHoSoDoiBong frmHoSoDoiBong = new FormHoSoDoiBong { MdiParent = this };
            frmHoSoDoiBong.Show();
        }

        private void traCứuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormTraCuu frmTraCuu = new FormTraCuu { MdiParent = this };
            frmTraCuu.Show();
        }

        private void báoBáoĐộiBóngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoDoiBong frm = new FormBaoCaoDoiBong();
            frm.MdiParent = this;
            frm.Show();
        }

        private void báoCáoDanhSáchCầuThủToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoDanhSachCauThu frm = new FormBaoCaoDanhSachCauThu();
            frm.MdiParent = this;
            frm.Show();
        }

        private void báoCáoHồSơĐộiBóngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoHoSoDoiBong frm = new FormBaoCaoHoSoDoiBong();
            frm.MdiParent = this;
            frm.Show();
        }

        private void báoBáoLịchThiĐấuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoLichThiDau frm = new FormBaoCaoLichThiDau();
            frm.MdiParent = this;
            frm.Show();
        }

        private void báoCáoKếtQuảThiĐấuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoKetQuaThiDau frm = new FormBaoCaoKetQuaThiDau();
            frm.MdiParent = this;
            frm.Show();
        }

        private void báoCáoBảngXếpHạngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoBangXepHang frm = new FormBaoCaoBangXepHang();
            frm.MdiParent = this;
            frm.Show();
        }

        private void xemTìmKiếmToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormTraCuu frmTraCuu = new FormTraCuu { MdiParent = this };
            frmTraCuu.Show();
        }        
    }
}
